package com.ruoyi.system.domain.vo.realtimevideo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.utils.SnowFlakeIDGenerator;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@ToString
@Accessors(chain = true)
public class AlarmData {
    //唯一id（前端做区分）
    private Long id = SnowFlakeIDGenerator.getInstance().nextId();
    //报警类型
    private int alarmType;
    //报警类型名称
    private String alarmTypeName;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;
    //位置
    private String address;
    //设备号
    private String deviceId;
    //车牌号
    private String numberPlate;
    //经度
    private Double lng;
    //纬度
    private Double lat;
    private String spd;
    private String amc;
}
